﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil.Cil;
using Mono.Cecil;

namespace devtm.Aop.Extensions
{
    
    public static class VariableDefinitionExt
    {


        public static VariableDefinition Clone(this VariableDefinition vd, TypeReference typeReference, TypeDefinition target)
        {
            return new VariableDefinition(vd.Name, vd.VariableType.CloseGenericParameter(typeReference, target));
        }

    }
}
